FROM nginx:latest

# 工作目录
WORKDIR /app

# 服务端文件
COPY ./apk-server .

COPY ./config.yml ./resource ./start.sh .

RUN chmod +x ./start.sh

# 前端文件
COPY ./dist ./data

# nginx配置文件
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

CMD ["sh", "/app/start.sh"]
